package com.cxy.dao;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.cxy.pojo.Talk;
@Repository
public class TalkDao  extends BaseDao<Talk, Integer> {
	@SuppressWarnings("unchecked")
	public List<Talk> findByIssuesId(String issid){
		String hql = "from Talk where issuesid=? and state=1";
		Query query = getSession().createQuery(hql);
		query.setParameter(0, issid);
		return query.list();
	}
}
